<?php
include("fckeditor.php") ;
?>
<html>
  <head>
    <title>FCKeditor - Sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<script type="text/javascript">
		function FCKeditor_OnComplete( editorInstance )
		{
			editorInstance.Events.AttachEvent( 'OnBlur'	, FCKeditor_OnBlur ) ;
			editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
		}
		
		function FCKeditor_OnBlur( editorInstance )
		{
			editorInstance.ToolbarSet.Collapse() ;
		}
		
		function FCKeditor_OnFocus( editorInstance )
		{
			editorInstance.ToolbarSet.Expand() ;
		}
	</script>
  </head>
  <body>
    <form action="savedata.php" method="post">
		<?php
		$oFCKeditor = new FCKeditor('FCKeditor1') ;
		$oFCKeditor->BasePath = 'http://virtual/iev_virtual/sas_virtual/_fckeditor/';
		$oFCKeditor->Value = 'Default text in editor';
		$oFCKeditor->ToolbarSet = "Simples";
		$oFCKeditor->Config['ToolbarStartExpanded'] = false;
		$oFCKeditor->Create() ;
		?>
      <br>
      <input type="submit" value="Submit">
    </form>
  </body>
</html>
